package apis

import (
	"net/http"

	"github.com/gin-gonic/gin"
)

func IndexHandler(c *gin.Context) {
	c.String(http.StatusOK, "It works")
}

func AddPersonApi(c *gin.Context) {
	//firstName := c.Request.FormValue("first_name")
	//lastName := c.Request.FormValue("last_name")

	//p := Person{FirstName: firstName, LastName: lastName}
	//
	//ra ,err:= p.AddPerson()
	//if err != nil {
	//	logger.Error(err)
	//}
	//msg := fmt.Sprintf("insert report is %d", ra)
	//c.JSON(http.StatusOK, gin.H{
	//	"msg": msg,
	//})
}
